package web;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.web.HTMLEditor;
import javafx.stage.Stage;

// 简单的HTML编辑器
public class HtmlEditorDemo extends Application {
	private Pane root = new Pane();
	private HTMLEditor htmlEditor;
	
	public static void main(String[] args) {
		launch(args);
	}
	
	@Override
	public void start(Stage stage) throws Exception {
		
		htmlEditor = new HTMLEditor();
		htmlEditor.setPrefSize(600, 400);
		root.getChildren().add(htmlEditor);
		
		Scene scene = new Scene(root, 700, 500);
		stage.setScene(scene);
		stage.show();
	}
}
